<template>
  <div :style="{position: 'relative'}">
    <Spin fix v-show="loading" />
    <slot />
  </div>
</template>

<script>
import { Spin } from "view-design";
export default {
  name: "Loading",
  components: {
    Spin
  },
  props: {
      /** 是否显示正在加载的屏蔽层 */
    loading: {
      type: Boolean,
      default: true
    }
  }
};
</script>

<style>
</style>